package com.GroupSix.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("teacher")
public class TeacherEntity {

    //主键
    @TableId(type = IdType.AUTO)
    private Long id;

    //教师姓名
    private String teacherName;

    //教师账号
    private Integer teacherId;

    //密码
    private String teacherPassword;

    //教学科目
    private Long course;

    //是否有效
    private Integer isActive;

    //登录标记
    private Integer loginTag;

    //登录时间
    private LocalDateTime loginTime;

    //创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    //最后修改时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;


}
